package org.ghub.pdf;

import java.io.IOException;

import com.itextpdf.text.pdf.PdfReader;
import com.itextpdf.text.pdf.parser.PdfTextExtractor;

public class pdfExtractText {
	
	public pdfExtractText(){
		
	}
	
	public static void main(String[] args) {
	    try {
	        // TODO code application logic here

	        PdfReader pr=new PdfReader("src/main/resources/Condicionado Salud de Oro Marzo 2010 (AM SO 02-10).pdf");

	        String str=PdfTextExtractor.getTextFromPage(pr, 1); 
	        System.out.println(str);

	    } catch (IOException ex) {
	        ex.printStackTrace();
	    }

	}

}
